const fs = require("fs");
const path = require("path");

var oldPath = path.join(__dirname,"1.txt");

var newPath = path.join(__dirname,"6.txt");

fs.renameSync(oldPath,newPath);